home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
comm2
/
ftp-mail.lha
/
FTP-Mail
/
ftp-mail.doc
< prev
next >
Wrap
Text File
|
1995-11-26
|
20KB
|
554 lines
----------------------------------------------------------------------------
Für die deutsche Anleitung benutze Kommando "HELP ftp-mail.dok"!
For most important Helpfiles from FTP-MAIL use the command "HELPALL".
Write an EMail to ftp@<domain>
with Subject or text HELPALL
----------------------------------------------------------------------------
FTP-MAIL.DOC
(c) 1994 by Alexander Aulbach
(c) 1995 by Marc Stuermer (for additional artwork ;)
Disclaimer: See Disclaimer.doc! Use command "HELP disclaimer.doc" to get
it via ftp-mail!
----------------------------------------------------------------------------
PLESE EXKUSE MEI BÄD ENGLISCH!!!
----------------------------------------------------------------------------
Important notice:
-----------------
Be careful with this program! It is possible to send very large e-mails
with this program! The costs of sending such big e-mail could be very
large for the sysops of the domains before you!
NEVER MISUSE THIS PROGRAM FOR CREATING FLAME-MAILS, BOMB-MAILS OR SUCH
THINGS!
----------------------------------------------------------------------------
What is it?
-----------
FTP-MAIL is a program to transfer automatically files via e-mail. I. e.
that you can order archives and other stuff via e-mail.
FTP-MAIL is programmed for sites, which have special files available (e.g.
some special CD-ROMS, or - as me - a large amount of samples) and want to
make them available for everyone, but don't want to run the computer as a
BBS, but have an e-mail connect to the usenet (or other uucp-networks).
FTP-MAIL was made for BBS's, which want to give the users a special
service. Normally it is a fact, that in the region of the BBS some
telefon-charges are left for every poll of the newsgroups. These free
charges could be used with ftp-mail.
FTP-MAIL was even made for the transfer of help-files. So it could be a
good idea for a UUCP-system to install this daemon for the subdomains,
that they can get the newest information about your system and some help
for new users.
----------------------------------------------------------------------------
Basic things:
-------------
o E-MAIL-ADDRESS:
FTP-MAIL responds to e-mails, which you are sending to the program!
If you send an e-mail to the system, you can use the following users:
ftp, ftp-mail, mail-server and ftp-mail-server.
Example-address: ftp-mail@ssilkyway.incubus.sub.org
FTP-MAIL uses the Reply-To-adress "ftp-mail-daemon", because in special
cases there are two daemons, which sends all the time mails to the other
daemon.
o LOGFILE:
FTP-MAIL always sends back a logfile with your ORIGINAL MAIL and all
actions you have done and how they have been interpreted.
EXCEPTION 1: If FTP-MAIL finds the command NOLOGFILE it will suppress the
sending of the logfile.
EXCEPTION 2: After a PUT-command only the next 2 lines will be sended,
then this sendback will be aborted!
EXCEPTION from EXCEPTION 1: If an error occurs.
For every successful command HELP, DIR, LIST, LS and GET you will get an
extra e-mail!
o HOW FTP-MAIL READS YOUR E-MAIL:
FTP-MAIL scans the whole mail! Even the header and the signature are
scanned. So be careful with your (perhaps randomly created) signature.
With the END-command you could avoid this.
If the "Subject:"-line contents commands, they will also be interpreted
(see ALIASES)!
Upper- and lowercase doesn't matter. FTP-MAIL converts all commands to
UPPERCASE.
FTP-MAIL scans lines upto a length of 64 kB - this is the maximum length
of an ARexx-string.
o HOW FTP-MAIL INTERPRETS:
FTP-MAIL understands only commands and arguments, like this:
<command> <argument>
^^^ ^^^
First word Rest of the line (after the whitespaces) is taken as argument!
Example: help ftp-paths.config
A command must be the first word of a line. A word consists of one or
more chars, the words are separated by whitespace (SPACE or TAB).
Spaces at the left or right of the argument are deleted!
FTP-MAIL is looking only for these commands! Otherwise the complete line
is ignored (exceptions are aliases).
PS: You can use quotes (<">) in the argument. They will be translated for
the DOS-scripts to <*">!
EXAMPLE: GET Usr:sounds/effects/Alex' cry
GET Usr:sounds/voices/Say "Aaaaaah"
o COMMAND DELIMITERS:
FTP-MAIL ist looking for ";" (ASCII 124) in a line. This sign is the command
delimiter. This signs works like a new line to ftp-mail. You can put as
many commands in a line as you want (up to 65536 chars per line).
EXCEPTION: After a PUT or END-command is found the rest of the mail/line
will not be scanned any more!
o HOW ALIASES WORK:
If a command is unknown, FTP-MAIL will look in the "ftp-alias.config"
for aliases. They are replaced in the form:
<oldcommand> <oldargument>
<newcommand> <newargument> <oldargument>
Example:
SUBJECT: HELPALL -> will be replace with
HELPALL -> will be replaced with
HELP | ALIASES | PATHS | MODES | MAXIMUM
vvvvvvv
ALIASES -> will be replaced with
HELP ftp-aliases.config
and so on!
You can get a full list of available aliases with the command "HELP
ftp-aliases.config" or just "ALIASES" - which is an alias to this command.
:-)
Aliases could be more than one command (see command delimiter "|").
o RESTRICTIONS:
- FTP-MAIL executes only the first 500 commands (not lines!) of an e-mail
(I think this is enough :-).
- Recursive aliases are not supported. The program stops with an error, the
FTP-postmaster will be informed.
- The postmaster of the system can tell FTP-MAIL the maximum file-length
of the transferred file. You can get this maximum length with the command
"HELP ftp-maxtransfer.config" or just "MAXIMUM" OR "MAXTRANSFER".
- There is no existing method at the moment to split large e-mail. :(
- The postmaster of the system can also tell FTP-MAIL the domains, which
are allowed to get a ftp-mail. You can get this informations with the
command "HELP ftp-domains-lvl<X>.config", where <X> is a number between
0 and maximum integer.
FTP-MAIL checks the receiver (Reply-To:) of the mails for a substring
from ftp-domains-lvl<X>.config.
o Security aspects
The security of this program is and will be limited. IT IS POSSIBLE TO
ABUSE THIS PROGRAM WITH FAKED EMAIL-ADRESSES. This is the reason why
the FTP-admin will get a copy of every logfile. But under normal
circumstances this program is relative secure. It is running now over
one year on a large mailbox without problems.
----------------------------------------------------------------------------
Known Commands:
---------------
HELP - Send SHORT help.
HELP - HELP <filename>. Sends filename. The filename should end with
".doc", ".config" or ".list", otherwise a ".doc" is added. A list
of other documentations about this daemon is included at the end of
this document (and any other HELP-request you will make)!
A specific help-file and the list of available files is sent only
once during a session.
EXCEPTION: The list of the documentations will not be added if
FTP-MAIL has found the NOFILEHELP-command.
Example: HELP ftp-mail ---> send this help-file (".doc" is
automatically added by default)
HELP ftp-aliases.config
---> sends config/ftp-aliases.config
("config/" is automatically added if
not there and extention is ".config"!)
HELP ftp-mail ---> would not be sent, because it's just
been sent in this session!
CD - CD <full path>
CD <relative path>
Change Directory. The parameter gives the full path of the
directory you wish to change to. The path is checked for validity,
invalid CD-requests are fully ignored.
Examples for full paths:
CD Usr:Sounds/cords
CD USR:sounds/DRUMS/
CD Usr:SOunds/Drums/Hihats/
Examples for relative paths:
The first CD-command has to be a full path!
CD Usr:Sounds/cords
CD / ---> path is now Usr:Sounds
CD effects ---> path is now Usr:Sounds/effects
CD : ---> path is nor Usr:
(but not allowed and ignored,
because not allowed in
ftp-paths.config!)
The first CD-command must be a full path.
You can get a full list of available paths with the command
"HELP ftp-paths.config" or just "PATHS" - which is an alias to this
command.
LIST
LS
DIR - LIST, LS, DIR
LIST <full path>, LS <full path>, DIR <full path>
You have to send a valid CD-command before you can list the
directory contents. You will get a list of all files in this
path.
It's shorter to overgive an argument to DIR, LS or LIST. In such
cases FTP-MAIL tries to make a CD-command first. This is the same
mechanism as in the GET-command.
Examples:
DIR
allritebeet axelerashenloop
Bongo-Snap Bongo-Snap.info
China-R-C China-R-H
China-Rythm digunddoof
...
LS
-----rwed 82 41284 Dez 23 1991 Usr:Sounds/Beats/allritebeet
/* Rythmus */
-----rwed 27 13492 Aug 10 1992 Usr:Sounds/Beats/Bongo-Snap
/* Rythmus */
-----rwed 98 49452 Jan 11 1994 Usr:Sounds/Beats/China-R-C
/* Rythmus */
-----rwed 98 49432 Jan 11 1994 Usr:Sounds/Beats/China-R-H
/* Rythmus */
...
Totals:
Dirs:0 Files:41 Blocks:2015 Bytes:1017158
LIST
09-Feb-92 20280 "Usr:Sounds/Beats/Hypnotist" Rythmus
17-Dez-91 42732 "Usr:Sounds/Beats/Hypnotist hart" Rythmus
10-Aug-92 494 "Usr:Sounds/Beats/Bongo-Snap.info" Rythmus
17-Dez-91 15104 "Usr:Sounds/Beats/Loop 1" Rythmus
17-Dez-91 25028 "Usr:Sounds/Beats/loop 1 131Bpm" Rythmus
17-Dez-91 25408 "Usr:Sounds/Beats/Loop 10" Rythmus
17-Dez-91 14788 "Usr:Sounds/Beats/Loop 2" Rythmus
17-Dez-91 27536 "Usr:Sounds/Beats/loop 2 128Bpm" Rythmus
17-Dez-91 25432 "Usr:Sounds/Beats/Loop 3" Rythmus
...
It is possible to take an argument as path for DIR, LS OR LIST.
In such a case FTP-MAIL tries to make CD <argument> before sending
the list (it's just nearly the same as with the GET-command)!
LISTALL
LSALL
DIRALL - LISTALL, LSALL, DIRALL
LISTALL <full path>, LSALL <full path>, DIRALL <full path>
These are the same commands like above, but the subdirectories
are listed recursively.
EXAMPLE for DIR:
Beats (dir)
allritebeet axelerashenloop
beat1 beat10
beat2 beat3
...
MODE - MODE <mode>.
The mode tells the daemon which programms are called before the
mail is sent (or uploaded).
Example: MODE LHA-UUENCODE
Default mode is: UUENCODE
You can get a full list of available modes with the command "HELP
ftp-modes.config". With the command "MODES" you can get this file
and the script-files, which represents the modes.
It is possible to change the mode during a session as often as
you want. The GET and PUT-commands refers only to the last sended
MODE-command. This has sence depending which kind of file will be
sent.
GET - Get <filename>
Get <full path><filename>
You have to send a valid CD-command before you can get files or you
must tell the get command a full path (Note: the first scan-routine
decides if it is a full path, when a ":" is in the parameter!)
If a file was sent successfully in one session, it will not
be sent again.
ATTENTION: Due to historical reasons every command
GET <full path> <filename> will be replaced
internally into two commands (CD <full path> and
GET <filename>). Please think about this. Once you
set up a path, it will be valid until the next
_valid_ CD-command.
Example: GET Usr:sounds/Beats/honey nut loops
GET loop 2 | # the path consists
GET Usr:Sounds/drums/woods/Block
The file is encoded with -> MODE. You will get an e-mail with this
coded file.
You can get a full list of available modes with the command
"HELP ftp-modes.config" or just "MODES" - which is a alias to this
command.
Please take a look into the e-mail-header, which is sent back to
you. Everything you need to extract it automatically is in the
X-... headers! I have implemented the command in this way that it
is possible to send a mail (that you have got from another site
with FTP-MAIL) as a PUT-command to your ftp-mail-daemon (with less
afford - changing the X-Path: - adding NOLOGFILE...!).
PUT - This is a special command!
If you want to send something to this system you have to put some
special-lines to your mail!
You MUST specify the following lines anywhere in the mail:
X-PATH: <path which must exist in ftp-upload-paths.config>
X-NAME: <name of the file>
X-COMMENT: <filecomment to this file>
X-LENGTH: <original-length>
FTP-MAIL CAN ACCESS ONLY ONE PUT-COMMAND PER SESSION (E-MAIL)!
Everything AFTER the PUT-command is dropped and will not be
executed (FTP-MAIL assumes, that the file you want to send to the
daemon is normally beginning directly behind the PUT-command).
For the moment only uuencoded files (see MODES!) could be sent.
X-LENGTH is in this case the length of the file BEFORE/AFTER
uuen/decoding!
Other keywords/commands:
END - The rest of the e-mail will not be read. Good for
random-signatures.
NOLOGFILE - I think this is easy to understand! This command supresses the
sending of the logfile.
EXCEPTION: If a bigger error occurs (FTP-MAIL got in trouble)
the logfile is sent back!
NOFILEHELP - This command supresses the appending of the list of existing
helpfiles at the end of the first helpfile.
MESSAGE-ID: - if you send more than one mail per day to the daemon. You can
see, which logfile belongs to the referencing mail.
This command is only evaluated once, because more than one
MESSAGE-ID: in a mail makes no sense!
DATE: - date of your posting. This command is only evaluated once.
FROM: - Default reply-address (if REPLY-TO: is not given)
REPLY-TO: - Reply address. This is good to send your mails not back to your
normal mailfolder. Example:
REPLY ftpget@ssilkyway.mayn.sub.de
^^^^^
--> "REPLY-TO:" has the alias "REPLY"!
FTP-MAIL takes always the last found REPLY-TO:-address for the
whole mail.
If REPLY-TO: is not found it will take the FROM:-argument. If
FROM: is also not found an error occurs.
empty lines
# - comments, which are not evaluated.
Example: # this is only a silly comment
# ^^^ this line before too! :-)
Only in context with PUT-command:
X-PATH: - path which must exist in ftp-upload-paths.config
X-NAME: - name of the file
X-COMMENT: - filecomment to this file
X-LENGTH: - original-length
----------------------------------------------------------------------------
Important aliases:
------------------
HELPALL -> "HELP | HELPME | ALIASES | PATHS | MODES | MAXIMUM"
This sends you the most important helpfiles!
See command delimiter above, to understand it!
HELPME -> "HELP ftp-mail.doc"
Send THIS Doc!
HILFMIR -> "HELP ftp-mail.dok"
Sende DEUTSCHE Dokumentation!
ALIASES -> "HELP ftp-aliases.config"
This command sends you the alias-list. There could be
user-defined aliases in it (e.g. sending a list of all files,
available on this site).
PATHS -> "HELP ftp-paths.config"
Sends a list of all available paths you can get files from
(only level-0 users!).
MODES -> "HELP ftp-modes.config | HELP config/.uuencode.list | HELP
config/.lha-uencode.list | HELP config/.raw.list | HELP
config/.uudecode.list"
Sends a list of all available modes and the script-files
belonging to the modes. The modes and what they do are
described in this list. The names after the modes are
the DOS-scripts which are called to execute the modes.
MAXIMUM or
MAXTRANSFER -> "HELP ftp-maxtransfer.config"
Sends the maximal length of a GET-request. GET will not work,
if a file is bigger than this.
REPLY -> "REPLY-TO:"
Used as an easier alias for the REPLY-TO: keyword.
SUBJECT: -> ""
This replaces the subject-command with nothing! See
replacement of aliases above, to understand it.
With this alias you can write commands in the subject-line!
----------------------------------------------------------------------------
Example e-mail:
---------------
> From ssilk Sat, 20 Aug 94 11:36:49 CED
> Received: by ssilkyway.mayn.sub.de (wUUCP 1.10)
> id <05bn@ssilkyway.mayn.sub.de>; Sat, 20 Aug 94 11:36:49 CED
> Date: Sat, 20 Aug 94 11:36:49 CED
> Message-Id: <9408201135.05bn@ssilkyway.mayn.sub.de>
> X-Mailer: //\\miga Electronic Mail (AmiElm 2.253)
> X-PATH: Usr:ftp-mail
> X-NAME: readme.doc
> X-COMMENT: The readme to FTP-MAIL-DAEMON
> X-LENGTH: 405
> Organization: Semmelstreet
> Reply-To: ssilk@ssilkyway.mayn.sub.de
> Content-Length: 692
> From: ssilk@ssilkyway.mayn.sub.de (Alexander Aulbach)
> To: ssilkftp@ssilkyway.mayn.sub.de
> Subject: HELPALL
>
> GET usr:sounds/beats/loop 4
>
> List | PUT | REPLY ftp_receiver@ssilkyway
> MODE RAW ; GET loop 2
>
> begin 777 readme.doc
> M"@I214%$344M1DE24U0N1$]#"@I7:&%T(&ES(&ET/PHM+2TM+2TM+2TM+0H*X
> M1E10+4U!24P@:7,@82!P<F]G<F%M('1O('1R86YS9F5R(&%U=&]M871I8V%LX
> M;'D@9FEL97,@=FEA($4M36%I;"X@22X@92X@=&AA= IY;W4@8V%N(&]R9&5RX
> M(&%R8VAI=F5S(&%N9"!O=&AE<B!S='5F9B!V:6$@12U-86EL+@H*1E10+4U!X
> M24P@:7,@979E;B!T:&]U9VAT(&9O<B!T<F%N<V9E<B!O9B!H96QP+69I;&5SX
> M+B!3;R!I="!C;W5L9"!B92!A(&=O;V0*:61E82!F;W(@82!554-0+7-Y<W1EX
> M;2!T;R!I;G-T86QL('1H:7,@9&%E;6]N(&9O<B!T:&4@<W5B9&]M86EN<RP@X
> M=&AA="!T:&5Y"F-A;B!G970@=&AE(&YE=V5S="!I;F9O<FUA=&EO;B!A8F]UX
> M="!Y;W5R('-Y<W1E;2!A;F0@<V]M92!H96QP(&9O<B!N97<*=7-E<G,N"@H*X
> X
> end
>
>
The REPLY, MODE and GET-command will not be executed, because all commands
after the PUT-command will not be read.
Have much fun with FTP-MAIL!